home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import os
- import logging
- import computerjanitor
- _ = computerjanitor.setup_gettext()
-
- class RemoveLiloPlugin(computerjanitor.Plugin):
- '''Plugin to remove lilo if grub is also installed.'''
- description = _('Remove lilo since grub is also installed.(See bug #314004 for details.)')
-
- def __init__(self):
- self.condition = [
- 'jauntyPostDistUpgradeCache']
-
-
- def get_cruft(self):
- if 'lilo' in self.app.apt_cache and 'grub' in self.app.apt_cache:
- lilo = self.app.apt_cache['lilo']
- grub = self.app.apt_cache['grub']
- if lilo.isInstalled and grub.isInstalled:
- if not os.path.exists('/etc/lilo.conf'):
- yield computerjanitor.PackageCruft(lilo, self.description)
- else:
- logging.warning('lilo and grub installed, but lilo.conf exists')
-
-
-
-
-